package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分兑换订单对象 az_shop_points_orders
 * 
 * @author liuwp
 * @date 2025-11-24
 */
public class ShopPointsOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productsId;

    /** 收货地址ID */
    @Excel(name = "收货地址ID")
    private Long addressId;

    /** 总积分 */
    @Excel(name = "总积分")
    private Long totalPoints;

    /** 实际支付积分 */
    @Excel(name = "实际支付积分")
    private Long actualPoints;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long productCount;

    /** 状态：1-待支付 2-待发货 3-已发货 4-已完成 5-已取消 6-退款中 7-已退款 */
    @Excel(name = "状态：1-待支付 2-待发货 3-已发货 4-已完成 5-已取消 6-退款中 7-已退款", dictType = "az_shop_order_status")
    private Integer status;

    /** 物流单号 */
    @Excel(name = "物流单号")
    private String trackingNumber;

    /** 物流公司 */
    @Excel(name = "物流公司")
    private String shippingCompany;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidAt;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shippedAt;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completedAt;

    /** 取消时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "取消时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelledAt;

    private ShopProducts shopProducts;

    public ShopProducts getShopProducts() {
        return shopProducts;
    }

    public void setShopProducts(ShopProducts shopProducts) {
        this.shopProducts = shopProducts;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProductsId(Long productsId) 
    {
        this.productsId = productsId;
    }

    public Long getProductsId() 
    {
        return productsId;
    }
    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setTotalPoints(Long totalPoints) 
    {
        this.totalPoints = totalPoints;
    }

    public Long getTotalPoints() 
    {
        return totalPoints;
    }
    public void setActualPoints(Long actualPoints) 
    {
        this.actualPoints = actualPoints;
    }

    public Long getActualPoints() 
    {
        return actualPoints;
    }
    public void setProductCount(Long productCount) 
    {
        this.productCount = productCount;
    }

    public Long getProductCount() 
    {
        return productCount;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setTrackingNumber(String trackingNumber) 
    {
        this.trackingNumber = trackingNumber;
    }

    public String getTrackingNumber() 
    {
        return trackingNumber;
    }
    public void setShippingCompany(String shippingCompany) 
    {
        this.shippingCompany = shippingCompany;
    }

    public String getShippingCompany() 
    {
        return shippingCompany;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setPaidAt(Date paidAt) 
    {
        this.paidAt = paidAt;
    }

    public Date getPaidAt() 
    {
        return paidAt;
    }
    public void setShippedAt(Date shippedAt) 
    {
        this.shippedAt = shippedAt;
    }

    public Date getShippedAt() 
    {
        return shippedAt;
    }
    public void setCompletedAt(Date completedAt) 
    {
        this.completedAt = completedAt;
    }

    public Date getCompletedAt() 
    {
        return completedAt;
    }
    public void setCancelledAt(Date cancelledAt) 
    {
        this.cancelledAt = cancelledAt;
    }

    public Date getCancelledAt() 
    {
        return cancelledAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("userId", getUserId())
            .append("productsId", getProductsId())
            .append("addressId", getAddressId())
            .append("totalPoints", getTotalPoints())
            .append("actualPoints", getActualPoints())
            .append("productCount", getProductCount())
            .append("status", getStatus())
            .append("trackingNumber", getTrackingNumber())
            .append("shippingCompany", getShippingCompany())
            .append("remark", getRemark())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("paidAt", getPaidAt())
            .append("shippedAt", getShippedAt())
            .append("completedAt", getCompletedAt())
            .append("cancelledAt", getCancelledAt())
            .toString();
    }
}
